package com.qg.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import pojo.User;

import java.util.Map;

@Component
@FeignClient(name = "sc-user-provider")
public interface UserService {
//    @RequestMapping(value = "/Login",method = RequestMethod.GET)
//    public String Login(@RequestParam("userName") String userName);

//    @RequestMapping(value = "/Login",method = RequestMethod.POST)
//    public String Login(@RequestBody User user);

    @RequestMapping(value = "/Login",method = RequestMethod.POST)
    public String Login(@RequestParam Map<String,Object> param);
}
